﻿using UnityEngine;
using UnityEditor;
using System;
using Sirenix.OdinInspector;
using System.Collections.Generic;

[Serializable]
public class BulletTrailData: MyScriptableObject
{

    //############技能移动方式 (状态机)
    //技能特效移动轨迹类型 0.不移动，1.直线 2.跟踪
    [LabelText("轨迹类型")]
    [ValueDropdown("BulletTrailEnum")]
    public int trail;
    //移动速度
    [LabelText("移动速度")]
    [Range(0, 0.5f)]
    [HideIf("@this.trail == 0")]
    public float trailSpeed;
    [LabelText("是否能弹射")]
    [HideIf("@this.trail == 2")]
    public bool canEjection;
    [LabelText("是否能穿越")]
    [HideIf("@this.trail == 2")]
    public bool canThrough;

#if UNITY_EDITOR
    private List<ValueDropdownItem<int>> BulletTrailEnum = new ValueDropdownList<int>()
    {
      { "不移动", 0 },
      { "直线", 1 },
      { "跟踪", 2 },
    };
#endif
}